Skip to main content

motionEnd

Type

message

Summary

Sent when a motion ends

Syntax

motionEnd <pMotion>

Description

Handle the motionEnd message to perform an action when a motion stops.

The motionEnd message is send to the current card of the defaultStack when the end of a motion is detected by the device.

note

As of iPhoneOS 3.0 the only motion that is generated is "shake".

Parameters

NameTypeDescription

pMotion

The type of motion detected by the device.

Examples

on motionEnd
stopDice -- stops the animation when the user stops the motion
end motionEnd

message: motionRelease, motionStart

Compatibility and Support

Introduced

LiveCode 4.5.2

OS

ios

android

Platforms

desktop

Thank you for your feedback!

Was this page helpful?